﻿function setDataPicker(){
    $.datepicker.regional['cn'] = {
        closeText: '关闭',
        prevText: '上一月',
        nextText: '下一月',
        currentText: '当前时间',
        monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
        dayNames: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期天'],
        dayNamesShort: ['一', '二', '三', '四','五','六','天'],
        dayNamesMin: ['天','一', '二', '三', '四','五','六'],
        weekHeader: '',
        dateFormat: 'yy/mm/dd',
        firstDay: 1,
        isRTL:false,
        showMonthAfterYear: true,
        yearSuffix: ''
    };
    $.timepicker.regional['cn'] = {
        timeOnlyTitle: '选择时间',
        timeText: '时间',
        hourText: '小时',
        minuteText: '分钟',
        secondText: '秒钟',
        millisecText: '毫秒',
        microsecText: '微秒',
        timezoneText: '时区',
        currentText: '现在时间',
        closeText: '关闭',
        timeFormat: 'HH:mm',
        timeSuffix: '',
        amNames: ['AM', 'A'],
        pmNames: ['PM', 'P'],
        isRTL: false
    };
    $.timepicker.setDefaults($.timepicker.regional['cn']);
    $.datepicker.setDefaults($.datepicker.regional['cn']);
}